package com.ruoyi.yey.config.utils;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

/**
 * 分页实体类
 * @author 一码
 */
@Data
public class PageVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "页号")
    private int pageNumber;

    @ApiModelProperty(value = "页面大小")
    private int pageSize;

    @ApiModelProperty(value = "排序字段")
    private String sort;

    @ApiModelProperty(value = "排序字段 - 多个排序字段，sort,order")
    private List<HashMap<String, String>> sorts;

    @ApiModelProperty(value = "排序方式 asc/desc")
    private String order;
}
